package com.koko.service;

import com.github.pagehelper.Page;
import com.koko.news.dto.NewsDTO;
import com.koko.news.dto.NewsPageQueryDTO;
import com.koko.news.entity.News;

import java.util.List;

public interface NewsService {
    Page<News> pageQuery(NewsPageQueryDTO newsPageQueryDTO);

    void save(NewsDTO newsDTO);

    void deleteBatch(List<Long> ids);

    void update(NewsDTO newsDTO);

    News getById(Long id);
}
